[Moore] Add coroutine, call_coroutine ops; lower to LLHD#10069
Open
fabianschuiki wants to merge 1 commit intomainfrom
Open
[Moore] Add coroutine, call_coroutine ops; lower to LLHD#10069fabianschuiki wants to merge 1 commit intomainfrom
fabianschuiki wants to merge 1 commit intomainfrom
Conversation
Contributor
Author
85a7160 to
d676ea7
Compare
8f20da9 to
9dfe8dc
Compare
Add `moore.coroutine` and `moore.call_coroutine` ops to represent SystemVerilog tasks. Tasks differ from functions in that they can suspend execution via timing controls. Update `moore.return` to also be valid inside coroutines. Add MooreToCore lowering: `moore.coroutine` maps to `llhd.coroutine`, `moore.call_coroutine` to `llhd.call_coroutine`, and `moore.return` inside a coroutine to `llhd.return`. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9dfe8dc to
0080246
Compare
Contributor
Author
|
Results of circt-tests run for 0080246 compared to results for 838a8bb: sv-testsChanges in emitted diagnostics:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
moore.coroutineandmoore.call_coroutineops to represent SystemVerilog tasks. Tasks differ from functions in that they can suspend execution via timing controls. Updatemoore.returnto also be valid inside coroutines.Add MooreToCore lowering:
moore.coroutinemaps tollhd.coroutine,moore.call_coroutinetollhd.call_coroutine, andmoore.returninside a coroutine tollhd.return.